#ifndef METHODDEVELOP_H
#define METHODDEVELOP_H

#include <QWidget>
#include <frmkeyboard.h>
#include "permission.h"
#include "QtMath"
#include "methodmanager.h"

#include <QMessageBox>
#include <QtCharts/QLineSeries>
#include <QtCharts/QValueAxis>
#include <QtCharts/QChart>
#include <QtCharts/QChartView>
#include <QtCharts/QLineSeries>

QT_CHARTS_USE_NAMESPACE

namespace Ui {
class MethodDevelop;
}

class MethodDevelop : public QWidget
{
    Q_OBJECT

public:
    explicit MethodDevelop(QWidget *parent = nullptr);
    ~MethodDevelop();
    //键盘
    frmKeyBoard *keyboard = new frmKeyBoard();
    bool isKeyBoardShow;
    //管理员相关
    void hiding(bool s);
    //图像生成
    QLineSeries *series = new QLineSeries();
    QChart *chart = new QChart();
    QChartView *chartView = new QChartView(chart);
    //hide keyboard by keyboard's close button
    void hidekeyboard();

signals:
    void display(int number);

    void reset();

private slots:
    void on_confirm_clicked();

    void on_save_clicked();

    void on_keyboard_clicked();

    void on_home_clicked();

    void on_selectmethod_clicked();

    void on_settings_clicked();

private:
    Ui::MethodDevelop *ui;

    void initStyleSheet();
};

#endif // METHODDEVELOP_H
